<?php
/**
 * 插件文件入口
 *
 * @version        $Id: plus.php 1 8:26 2013年5月30日 天意 $
 * @package        AmfCMS.Administrator
 * @copyright      Copyright (c) 2013 - 2013, AmfCMS, Inc.
 * @license        http://www.meiyear.com
 * @link           http://www.meiyear.com
 */
define("PLUS",1);
$__do = $_GET['do'];
$__model = isset($_GET['model']) ? $_GET['model'] : '';
require_once('amfcms/amfcms.php');
if(preg_match("/[a-z_]/i",$__do) && filexists('amfcms/plus/'.$__do.'.php')){
	require_once("amfcms/model/common.inc.php");

	include('amfcms/plus/'.$__do.'.php');
}else if(preg_match("/[a-z_]/i",$__do) && preg_match("/[a-z]/i",$__model) && filexists('amfcms/plus/'.$__model) && filexists('amfcms/plus/'.$__model.'/'.$__do.'.php')){
	include('amfcms/plus/'.$__model.'/'.$__do.'.php');
}else{
	exit('没有这个模块，或者文件名出现bug');
}